/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-17 16:00:22
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-04-29 14:40:40
 * @FilePath: \cxl-driving-training\src\views\classManagement\learnDrivingTypeList\edit\formConfig.ts
 */
import { PropsFormpData } from '@/utils/interface'

export const data: PropsFormpData[] = [
    [
        {
            key: 'schoolId',
            label: '所属驾校：',
            placeholder: '请选择所属驾校',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择所属驾校',
            trigger: 'change',
            valid: true,
            options: []
        }
    ],
    [
        {
            key: 'city',
            label: '地址选择：',
            required: true,
            message: '请选择地址',
            value: [],
            type: 'addr',
            width: 2,
            trigger: 'blur',
            valid: true,
            hasDetailed: false,
            region: false,
            latLng: [],
            detailed: ''
        }
    ],
    [
        {
            key: 'classId',
            label: '所属班别：',
            placeholder: '请选择所属班别',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择所属班别',
            trigger: 'change',
            valid: true,
            options: []
        }
    ],
    [
        {
            key: 'productType',
            label: '产品类型：',
            placeholder: '请选择产品类型',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择产品类型',
            trigger: 'change',
            valid: true,
            options: <any>[]
            // options: [
            //     { value: '1', label: 'C1' },
            //     { value: '2', label: 'C2' },
            //     { value: '3', label: '抵扣券' }
            // ]
        }
    ],
    [
        {
            key: 'activePrice',
            label: '活动价（元）：',
            placeholder: '请输入',
            required: true,
            message: '请输入活动价',
            value: '',
            type: 'number',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'originalPrice',
            label: '原价（元）：',
            placeholder: '请输入',
            required: true,
            message: '请输入原价',
            value: '',
            type: 'number',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'productName',
            label: '产品名称：',
            placeholder: '请输入',
            required: true,
            message: '请输入产品名称',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'purchaseNum',
            label: '购买基数：',
            placeholder: '请输入',
            required: true,
            message: '请输入购买基数',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'description',
            label: '产品描述：',
            placeholder: '请输入',
            required: true,
            message: '请输入产品描述',
            value: '',
            type: 'text',
            width: 4,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'productPic',
            label: ' 展示图：',
            required: true,
            message: '请上传展示图',
            value: [],
            type: 'file',
            width: 4,
            imageCount: 5,
            videoCount: 0,
            count: [],
            tagVisible: true,
            hint: '仅支持png、jpg格式，大小不超过5M，图片尺寸 750*562',
            trigger: 'blur',
            valid: true,
            dirType: 'class',
            sizeRatio: [10, 7.5]
        }
    ],
    [
        {
            key: 'details',
            label: '介绍说明：',
            placeholder: '请输入',
            required: true,
            message: '请输入介绍说明',
            value: '',
            type: 'tinymce',
            width: 4,
            trigger: 'blur',
            options: [],
            valid: true
        }
    ]
]
